import request from '@/utils/request'

export function selectHouseList(query){
    return request({
        url:'/house/list',
        method:'get',
        params:query,
    })
}
//新增学生列表
export function addHouse(data){
    return request({
        url:'/house/addHouse',
        method:'post',
        data:data
    })
}
//修改学生列表
export function updateHouse(data){
    return request({
        url:'/house/updateHouse',
        method:'put',
        data:data
    })
}
//删除学生列表
export function deleteById(id){
    return request({
        url:'/house/'+id,
        method:'delete'
    })
}
export function houseType(type){
    return request({
        url:'/house/houseType/'+type,
        method:'get'
    })
}
